//
//  ZGLContentHeaderView.m
//  ZeegingLottery
//
//  Created by 李曌 on 2018/10/27.
//  Copyright © 2018 蒂埃里. All rights reserved.
//

#import "ZGLContentHeaderView.h"

@interface ZGLContentHeaderView ()

@property (weak, nonatomic) IBOutlet UILabel *typeLabel;

@property (weak, nonatomic) IBOutlet UIView *tagView;
@property (weak, nonatomic) IBOutlet UIView *colorView;

@end



@implementation ZGLContentHeaderView

//- (instancetype)initWithFrame:(CGRect)frame
//{
//    self = [super initWithFrame:frame];
//    self = [[[NSBundle mainBundle] loadNibNamed:@"ZGLContentHeaderView" owner:nil options:nil] lastObject];
//    if (self) {
//        self.frame = frame;
//        
//        
//    }
//    return self;
//}

- (void)setTypeString:(NSString *)typeString
{
    _typeString = typeString;
    
    self.typeLabel.text = typeString;
    
}

- (void)setIsHome:(BOOL)isHome
{
    if (!isHome) {
        self.tagView.backgroundColor = [UIColor blueColor];
        self.colorView.backgroundColor = [UIColor blueColor];
    }
}

@end
